package com.beiding.v2.grammar;

import com.beiding.v2.base.IUnit;
import com.beiding.v2.element.IExpression;

import java.util.List;

public class Expression implements IExpression {
    private List<IUnit> units;

    private boolean inner;

    Expression(List<IUnit> units, boolean inner) {
        this.units = units;
        this.inner = inner;
    }

    @Override
    public List<IUnit> getChildren() {
        return units;
    }

    @Override
    public boolean isInner() {
        return inner;
    }

    @Override
    public void setInner(boolean inner) {
        this.inner = inner;
    }
}